Place Public Class First (PPCF)

Description:

public classes and interfaces should be declared before non-public classes and interfaces in a source file or namespace.

Incorrect:


class Helper {
    ...
}

public class Action {
    ...
}

Correct:

public class Action {
    ...
}

class Helper {
    ...
}